require 'rails/generators'

class VersionViewGenerator < Rails::Generators::Base
  
  def self.source_root
      File.join(File.dirname(__FILE__), '../templates')
  end  
  
  def install
    puts "Initialising version_view gem"
  end
  
  def copy_config_files
      copy_file 'version_view.rb',  'config/initializers/version_view.rb'
      copy_file 'VERSION',  'VERSION'      
  end  
  
  def show_readme
    readme "README"
  end
end